<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			
			function addinput(){
				var txt=document.createElement("input");
				txt.type="text";
				txt.name="txt";
				txt.value="动态添加的文本框";
				document.form1.appendChild(txt);
			}
			
			
			
			
			
			
			
			
		</script>
		
		<form name="form1">
			
			<input type="button" name="btn1" value="动态添加的文本框" onclick="addinput();" />
			
			
			
			
			
			
			
			
		</form>
	</body>
</html>
